package com.yida.gwj.expend.outside.exception;

import com.yida.gwj.expend.outside.enums.MaintenanceFundsErrorEnum;

/**
 * 维修基金业务前端异常
 *
 * @author liangp
 * @date 2023/02/23
 */
@Deprecated
public final class MaintenanceFundsBusinessWebException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public MaintenanceFundsBusinessWebException() {}

    public MaintenanceFundsBusinessWebException(String message) {
        this.message = message;
    }

    public MaintenanceFundsBusinessWebException(MaintenanceFundsErrorEnum maintenanceFundsErrorEnum, String message) {
        this.message = message;
        this.maintenanceFundsErrorEnum = maintenanceFundsErrorEnum;
    }

    /**
     * 错误提示
     */
    private String message;

    /**
     * 错误码
     */
    private MaintenanceFundsErrorEnum maintenanceFundsErrorEnum;

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public MaintenanceFundsErrorEnum getMaintenanceFundsErrorEnum() {
        return maintenanceFundsErrorEnum;
    }

    public void setMaintenanceFundsErrorEnum(MaintenanceFundsErrorEnum maintenanceFundsErrorEnum) {
        this.maintenanceFundsErrorEnum = maintenanceFundsErrorEnum;
    }

}
